package cn.kmsoft.spatialboot.common.object;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by  on 2017/9/6.
 */
public class StatsParams extends GeometryParams {
    private String tableId = "";
    private String where;
    private List<StatsFieldObject> statsFields;
    private List<String> groupFields;

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getTableId() {
        return tableId;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public String getWhere() {
        return where;
    }

    public void setGroupFields(List<String> groupField) {
        this.groupFields = groupField;
    }

    public List<String> getGroupFields() {
        if (groupFields == null) {
            groupFields = new ArrayList<>();
        }

        return groupFields;
    }

    public List<StatsFieldObject> getStatsFields() {
        if (statsFields == null) {
            statsFields = new ArrayList<>();
        }
        return statsFields;
    }

    public void setStatsFields(List<StatsFieldObject> statsFields) {
        this.statsFields = statsFields;
    }
}
